{extend name="public/common"} {block name="body"}
<title>基本设置</title>
</head>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    首页
    <span class="c-gray en">&gt;</span>
    财务管理
    <span class="c-gray en">&gt;</span>
    支付宝支付方案修改
    <a class="btn btn-success radius r"
       style="line-height: 1.6em; margin-top: 3px"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>

<article class="page-container">
    <form class="form form-horizontal" action="" enctype="multipart/form-data" id="form-admin-add" method="post">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">
                <span class="c-red">*</span>
                QQ账户昵称：
            </label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" name="xx_name" value="{$query.xx_name?$query.xx_name:''}" class="input-text" required="required">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">
                <span class="c-red">*</span>
                QQ账户缩写：
            </label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" name="xx_test" value="{$query.xx_test?$query.xx_test:''}" class="input-text" required="required">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">备注消息：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea name="xx_remark" class="textarea">{$query.xx_remark?$query.xx_remark:''}</textarea>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">支付二维码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <img src="__ATTACHMENT__/{$query.xx_erweima?$query.xx_erweima:'20171113/8c9acbed0672667d0658ba49ea750960.jpg'}"  width="100" height="100" />
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">
                <span class="c-red">*</span>
                上传新二维码：
            </label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="btn-upload form-group">
                    <input class="input-text upload-url" type="text" name="file" id="test_charu_{$zfid}" readonly >
                    <a href="javascript:void(0);" onclick="addpic({$zfid})" class="btn btn-primary radius upload-btn">
                        <i class="Hui-iconfont">&#xe642;</i> 选择图片
                    </a>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">状态</label>
            <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                <div class="radio-box" style="padding-left: 0px;">
                    <input name="status" type="radio" id="sex-1" value="1" {if(1==$query.status)} checked {/if}/>
                    <label for="sex-1">开</label>
                </div>
                <div class="radio-box">
                    <input name="status" type="radio" id="sex-2" value="0" {if(0==$query.status)} checked {/if}/>
                    <label for="sex-2">关</label>
                </div>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <button class="btn btn-primary radius" type="submit">
                    <i class="Hui-iconfont">&#xe632;</i>
                    保存
                </button>
                <div class="btn btn-primary radius" onclick="javascript:history.back(-1);">
                    <i class="Hui-iconfont">&#xe632;</i>
                    返回
                </div>
            </div>
        </div>
    </form>
</article>
<form enctype="multipart/form-data" id="sky_upform_{$zfid}" style="display:none" name="sky_upform_1" action="" method="post">
    <input type="file" name="upfile" id="upfile_{$zfid}" onchange="submitpic({$zfid})" />
</form>
{/block}
{block name="js"}
<script type="text/javascript" src="__SYSMET__/common.js"></script>
<script type="text/javascript" src="__SYSMET__/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="__SYSMET__/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__SYSMET__/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript">
    //表单验证
    $("#form-admin-add").validate({
        rules:{
            xx_name:{
                required:true,
            },
            xx_remark:{
                required:true,
            },
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
    });
</script>
{/block}